import request from '@/utils/request'

// 查询闸机记录列表
export function listTicketGateRecord(query) {
  return request({
    url: '/ticket/ticketGateRecord/list',
    method: 'get',
    params: query
  })
}

// 查询闸机记录详细
export function getTicketGateRecord(id) {
  return request({
    url: '/ticket/ticketGateRecord/' + id,
    method: 'get'
  })
}

// 新增闸机记录
export function addTicketGateRecord(data) {
  return request({
    url: '/ticket/ticketGateRecord',
    method: 'post',
    data: data
  })
}

// 修改闸机记录
export function updateTicketGateRecord(data) {
  return request({
    url: '/ticket/ticketGateRecord',
    method: 'put',
    data: data
  })
}

// 删除闸机记录
export function delTicketGateRecord(id) {
  return request({
    url: '/ticket/ticketGateRecord/' + id,
    method: 'delete'
  })
}
